package spring.component;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * User  yyl
 * Description: 标注名字
 * Created by yaoyonglong on 2018/11/1 10:22
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface Myname {

    /**
     * 如果有 name 就用name 做为key
     * 如果没有name 就使用类型首字母小写作为key
     *
     * @return
     */
    public String name() default "";

}
